<%@page import="model.Billet"%>
<%@page import="dao.DaoBillet"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>Achat et vente de billets</title>
	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
	<!--[if lte IE 6]><link rel="stylesheet" href="css/ie6.css" type="text/css" media="all" /><![endif]-->
	
	<meta name="keywwords" content="Shop Around - Great free html template for on-line shop. Use it as a start point for your on line business. The template can be easily implemented in many open source E-commerce platforms" />
	<meta name="description" content="Shop Around - Great free html template for on-line shop. Use it as a start point for your on line business. The template can be easily implemented in many open source E-commerce platforms" />
	
	<!-- JS -->
	<script src="js/jquery-1.4.1.min.js" type="text/javascript"></script>	
	<script src="js/jquery.jcarousel.pack.js" type="text/javascript"></script>	
	<script src="js/jquery-func.js" type="text/javascript"></script>	
	<!-- End JS -->
	
</head>
<body>
	
<!-- Shell -->	
<div class="shell">
	
	<!-- Header -->	
	<%@ include file="header.jsp" %>
	
	<!-- Main -->
	<div id="main">
		<div class="cl">&nbsp;</div>
		
		<!-- Content -->
		<div id="content">
			
			<!-- Content Slider -->
			<div id="slider" class="box">
				<div id="slider-holder">
					<ul>
					    <li><a href="#"><img src="images/publicites/pub2.png" alt="" /></a></li>
					    <li><a href="#"><img src="images/publicites/pub1.jpg" alt="" /></a></li>
					    <li><a href="#"><img src="images/publicites/pub3.jpg" alt="" /></a></li>
					    <li><a href="#"><img src="images/publicites/pub4.jpg" alt="" /></a></li>
					</ul>
				</div>
				<div id="slider-nav">
					<a href="#" class="active">1</a>
					<a href="#">2</a>
					<a href="#">3</a>
					<a href="#">4</a>
				</div>
			</div>
			<!-- End Content Slider -->

			
			<!-- Products -->
			<div class="products">
				<div class="cl">&nbsp;</div>
				<ul>
				
									
					<%
						DaoBillet daobillet = new DaoBillet();
						ArrayList<Billet> listebillet = (ArrayList<Billet>)daobillet.informationBillet();
						for(Billet billet : listebillet){
					%>
					
				    <li>
				    	<div class="product-info">
				    		<h3><%=(String)billet.getVilleDepart() %> --> <%=(String)billet.getVilleArrivee() %></h3>
				    		<div class="product-desc">
								<p><%=(String)billet.getDateDepart() %><br />
				    			<%=(String)billet.getHeureDepart() %></p>
				    			<strong class="price">$<%=String.valueOf(billet.getPrixVente()) %></strong>
				    			
				    			<a href="details_billet.jsp?idbillet=<%= billet.getIdBillet() %>
										 &villedep=<%= billet.getVilleDepart() %>
										 &villearr=<%= billet.getVilleArrivee() %>
										 &datedep=<%= billet.getDateDepart() %>
										 &heuredep=<%= billet.getHeureDepart() %>
										 &prixvente=<%= billet.getPrixVente() %>
										 &prixachat=<%= billet.getPrixInitial() %>
										 &validite=<%= billet.getValiditeBillet() %>
										 &imageBillet=<%= billet.getImageBillet() %>
										 &dateenligne=<%= billet.getDateMiseEnLigne() %>" class="bul">
										 Details</a><br />
				    		</div>
				    	</div>
			    	</li>
			  <%} %>
			    	
				</ul>
				
				<div class="cl">&nbsp;</div>
			</div>
			<!-- End Products -->
			
		</div>
		<!-- End Content -->
		
		<!-- Sidebar -->
		<div id="sidebar">
			
			<!-- Search -->
			<%@ include file="search.jsp" %>
			
			<!-- Menus -->
			<%@ include file="menus_user.jsp" %>
			
		</div>
		<!-- End Sidebar -->
		
		<div class="cl">&nbsp;</div>
	</div>
	<!-- End Main -->
	
	<!-- Side Full -->
	<%@ include file="foot_slide.jsp" %>
	
	<!-- Footer -->
	<%@ include file="footer.jsp" %>

</div>	
<!-- End Shell -->
	
</body>
</html>